package com.zrwl.poscloud.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zrwl.poscloud.base.superI.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@TableName("psms_tr_call_order_use_record")
public class CallOrderUseRecord extends SuperEntity<CallOrderUseRecord> {
    @ApiModelProperty("订单uid")
    private String orderUid;
    @ApiModelProperty("使用数量(包月按1日,包时长按分钟数)")
    private int useCount;
    @ApiModelProperty("计费类型(包月不计费,包时长超出时计费,按分钟按时计费)")
    private int billingAmt;
    @ApiModelProperty("备注名称")
    private String remarkName;
    @ApiModelProperty("对方电话号码")
    private String callNumber;
    @ApiModelProperty("服务商:(1:移动,2:联通,3:电信)")
    private String service;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("通话开始时间")
    private Date callBeginTime;
    @ApiModelProperty("使用时长")
    private int duration;


}
